<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript">
	function editUserInfo(uId,vsId){
		art.dialog.open(
			ctx + "/editUserInfo.html?id=" + uId + "&vipServiceId=" + vsId, {
				title: "编辑个人信息",
				width:"600px", 
				height:"330px",
				lock: true
			}
		);
	}
	
	function changeAdviser(id){
		art.dialog.open(
			ctx + "/toAdviser.html?id=" + id, {
				title: "更换顾问",
				width:"500px", 
				height:"200px",
				lock: true
			}
		);
	}
	
	function changeEditor(id){
		art.dialog.open(
			ctx + "/toEditor.html?id=" + id, {
				title: "更换专业顾问",
				width:"500px", 
				height:"200px",
				lock: true
			}
		);
	}
</script>

<table cellpadding="1" cellspacing="0" style="width: 100%;padding: 10px;">
	<tr>
		<td style="width: 10%;">
			申请者：
		</td>
		<td style="width: 10%;">
			<s:property value="user.nickname" />
		</td>
		<td style="width: 10%;">
			本科学校：
		</td>
		<td style="width: 20%;">
			<s:property value="userInfo.undergraduateSchoolName" />
		</td>
		<td style="width: 10%;">
			本科专业：
		</td>
		<td style="width: 15%;">
			<s:property value="userInfo.undergraduateMajorName" />
		</td>
		<td style="width: 10%;">
			申请专业：
		</td>
		<td style="width: 15%;">
			<s:property value="userInfo.applyMajorName" />
		</td>
	</tr>
	<tr>
		<td>
			入学年份：
		</td>
		<td>
			<s:property value="userInfo.admissionYear" />
		</td>
		<td>
			本科GPA：
		</td>
		<td>
			<s:property value="userInfo.undergraduateGpa" />
		</td>
		<td>
			托福成绩：
		</td>
		<td>
			<s:property value="userInfo.toefl" />
		</td>
		<td>
			GRE成绩：
		</td>
		<td>
			<s:property value="userInfo.gre" />
		</td>
	</tr>
	<tr>
		<td>
			手机：
		</td>
		<td>
			<s:property value="userInfo.mobilephone" />
		</td>
		<td>
			邮箱：
		</td>
		<td>
			<s:property value="user.email" />
		</td>
		<td>
			QQ：
		</td>
		<td>
			<s:property value="userInfo.qq" />
		</td>
		<td>

		</td>
		<td class="right">
			<a href="javascript:void(0)" onclick="editUserInfo(<s:property value="user.id"/>,${vipServiceId })">编辑个人信息</a>
		</td>
	</tr>
	<tr>
		<td colspan="8">
			<hr style="border-color: #F06E00;border-style: dashed;margin-bottom: 5px;" />
		</td>
	</tr>
	<tr>
		<td>
			留学顾问：
		</td>
		<td>
			<s:property value="vipService.adviser.nickname" />
		</td>
		<td>
			联系电话：
		</td>
		<td>
			<s:property value="vipService.adviser.userInfo.mobilephone" />
		</td>
		<td>
			手机：
		</td>
		<td>
			<s:property value="vipService.adviser.phone" />
		</td>
		<td>

		</td>
		<td class="right">
			<c:if test="${'ROLE_USER' ne currentRole.name and 'ROLE_EDITOR_IN_CHIEF' ne currentRole.name }">
				<a href="javascript:void(0)" onclick="changeAdviser(${vipServiceId })">更换顾问</a>
			</c:if>
		</td>
	</tr>
	<tr>
		<td colspan="8">
			<hr style="border-color: #F06E00;border-style: dashed;margin-bottom: 5px;" />
		</td>
	</tr>
	<tr>
		<td>
			专业顾问：
		</td>
		<td>
			<s:property value="vipService.editor.nickname" />
		</td>
		<td>
			手机：
		</td>
		<td>
			<s:property value="vipService.editor.phone" />
		</td>
		<td>
			QQ：
		</td>
		<td>
			<s:property value="vipService.editor.userInfo.qq" />
		</td>
		<td>

		</td>
		<td class="right">
			<c:if test="${'ROLE_USER' ne currentRole.name and 'ROLE_EDITOR_IN_CHIEF' ne currentRole.name }">
				<a href="javascript:void(0)" onclick="changeEditor(${vipServiceId })">更换专业顾问</a>
			</c:if>
		</td>
	</tr>
</table>
